package com.etc.cloud.service;

import com.etc.cloud.entityes.CommonResult;
import com.etc.cloud.entityes.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author kalista
 * @Description
 * @Date 2020/8/21  15:06
 **/
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {



    @GetMapping(value = "/payment/get/{id}")
     CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);


    @GetMapping("/payment/feigin/timeout")
     String paymentFeginFTimeOut();


}
